package com.sservice.service.service;

import com.sservice.model.entity.Info;
import com.sservice.model.vo.InfoVo;

import java.util.List;

public interface IInfoService {

    //    public User queryByUserName(String userName);
    List<InfoVo> queryPlainByPage(InfoVo arg);

    /**
     * 分页查询:关键字，手机号、字段升降序、每页显示大小，某一页
     * 默认进行每页15个显示
     *
     * @param arg
     * @return
     */
    public List<Info> queryByPage(InfoVo arg);

    List<InfoVo> queryWithCategoryByPage(InfoVo arg);

    public int queryCount(InfoVo arg);

    int deleteByPrimaryKey(Integer id);

    int insert(Info arg);

    int insertSelective(Info arg);

    Info selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Info arg);

    /**
     * 关系查询
     *
     * @param user
     * @return
     */
    List<Info> queryWithDrByPage(InfoVo user);

    /**
     * 关系查询统计
     *
     * @param user
     * @return
     */
    int countWithDrByPage(InfoVo user);

}
